package com.test.manager;

import java.util.List;
import java.util.Set;

import com.test.common.Page;
import com.test.common.Query;
import com.test.entity.SysUser;


/**
 * 系统用户
 * @author luotuo
 */
public interface SysUserManager {

	SysUser getByUserName(String username);
	
	List<SysUser> listUser(Page<SysUser> page, Query search);
	
	int saveUser(SysUser user);
	
	SysUser getById(Long userId);
	
	int updateUser(SysUser user);
	
	int batchRemove(Long[] id);
	
	Set<String> listUserPerms(Long userId);
	
	Set<String> listUserRoles(Long userId);
	
	int updatePswdByUser(Query query);
	
	int updateUserEnable(Long[] id);
	
	int updateUserDisable(Long[] id);
	
	int updatePswd(SysUser user);
	
	SysUser getUserById(Long userId);
	
}
